/**
 * @author：anlzou
 * @Date：Created in9:33 2021/4/19
 * @Github：https://github.com/anlzou
 * @Description：
 */
package com.anlzou.threadPool;

import java.util.concurrent.Callable;

public class Mythread2 implements Callable<Integer> {

    // 实现call方法
    public Integer call() throws Exception {
        int count = 0;

        for(int i=0;i<100;i++) {
            count += i;
        }

        return count;
    }
}
